import request from '@/utils/request'


export function submit(data) {
  return request({
    url: 'buss/progressdaily/submit',
    method: 'post',
    data
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/progressdaily/resubmit',
    method: 'post',
    data
  })
}


export function del(ids) {
  return request({
    url: 'buss/progressdaily/delete',
    method: 'post',
    data: ids
  })
}

export function getOne(id) {
  return request.get('buss/progressdaily/getOne?id='+id)
}



export function getTablePage(data) {
  return request.post('buss/progressdaily/paging', data)
}


export function getVersionNumbers(data) {
  return request.get('buss/progressdaily/getVersionNumbers?sectionId='+data)
}


export function audit(data) {
  return request({
    url: 'buss/progressdaily/audit',
    method: 'post',
    data
  })
}


export function report(data) {
  return request({
    url: 'buss/progressdaily/report',
    method: 'post',
    data
  })
}



export default {
  submit,
  resubmit,
  getOne,
  del,
  getTablePage,
  getVersionNumbers,
  audit,
  report
}
